package com.example.project.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;

import java.time.LocalDateTime;
import java.util.List;

@ApiModel("NconMaterial 表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NconMaterial implements Serializable {
    private static final long serialVersionUID = -85890467483632341L;
    @ApiModelProperty("非合同资料id")
    private Long id;

    @ApiModelProperty("非合同资料名")
    private String nconMarName;

    @ApiModelProperty("项目id")
    private Long projId;

    @ApiModelProperty("资料类型ID")
    private Long nconTypeId;

    @TableField(exist = false)
    private NconType nconType;

    @ApiModelProperty("文件日期")
    private LocalDate fileDate;

    @ApiModelProperty("内容事项")
    private String nconMat;

    @ApiModelProperty("产生部门id")
    private Long initDeptId;

    @ApiModelProperty("一般材料备注")
    private String remark;

    @ApiModelProperty("录入人员id")
    private Long initUserId;

    @ApiModelProperty("资料页数")
    private Integer nconPage;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updataTime;

    @ApiModelProperty("文件数量")
    private Long fileCount;


    @TableField(exist = false)
    private Project project;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Depart depart;

    @TableField(exist = false)
    private List<File> fileList;


}

